package org.example.config;

import dev.langchain4j.community.model.dashscope.QwenEmbeddingModel;
import dev.langchain4j.model.embedding.EmbeddingModel;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;


/**
 * 向量模型配置-设置向量模型参数配置
 */
@Configuration
public class EmbeddingModelConfig {
    @Bean
    public EmbeddingModel embeddingModel() {
         return QwenEmbeddingModel.builder()
                .apiKey("sk-bdcd99a811de4e468cd40be328a7648a")
                .modelName("text-embedding-v3")
                .build();
    }
}
